{if isset($notification)}
<div class="section">
    <div class="message {$notification.type}">
        <span>{$notification.msg}</span>
    </div>
</div>
{/if}
<div class="section">
	<div class="box">
		<div class="title">
			Cấu hình hệ thống
			<span class="hide"></span>
		</div>
		<div class="content">
			<form action="{Url::current()}" method="post" enctype="multipart/form-data">
				<div class="row">
					<label>Hotline *</label>
					<div class="right"><input type="text" name="txtHotline" value="{if isset($config)}{$config.hotline}{/if}" maxlength="100" placeholder="Max. 100 characters..." /></div>
				</div>
                <div class="row">
					<label>Email gửi *</label>
					<div class="right"><input type="text" name="txtEmailS" value="{if isset($config)}{$config.mail_send}{/if}" maxlength="100" placeholder="Max. 100 characters..." /></div>
				</div>
				<div class="row">
					<label>Email nhận *</label>
					<div class="right"><input type="text" name="txtEmailR" value="{if isset($config)}{$config.mail_recive}{/if}" maxlength="100" placeholder="Max. 100 characters..." /></div>
				</div>
				<div class="row">
					<label>Mật khẩu email gửi *</label>
					<div class="right"><input type="password" name="txtPass" value="{if isset($config)}{$config.password}{/if}" minlength="6" maxlength="10" placeholder="Từ 6 đến 10 ký tự..."/></div>
				</div>
                <div class="row">
					<label>Nội dung *</label>
					<div class="right">
					{if isset($config)}
        				{Editor::display('txtContent', {$config.info}, TRUE)}
        			{else}
        				{Editor::display('txtContent', NULL, TRUE)}
        			{/if}
					</div>
				</div>
                <div class="row">
					<label>Logo</label>
					<div class="right">
						{if isset($config.images) && $config.images neq ''}<img src="{$config.images}" width="160px" height="100px" alt="image" style="margin-bottom:10px" /><br />{/if}
						<input type="file" name="images" />
					</div>
				</div>
                <div class="row">
					<div class="right">
                        <input type="hidden" name="token" value="{Security::setToken('token_form')}" />
						<input type="hidden" name="action" value="update" />
						<button type="submit"><span>Save</span></button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>